package com.example.mountainwalker.service.impl;


import com.example.mountainwalker.entity.GroupTourRegistrationInfo;
import com.example.mountainwalker.entity.TravelStrategyInfo;
import com.example.mountainwalker.mapper.TravelStrategyMapper;
import com.example.mountainwalker.service.TravelStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TravelStrategyServiceImpl implements TravelStrategyService {
    @Autowired
    private TravelStrategyMapper travelStrategyMapper;

    @Override
    public List<TravelStrategyInfo> getTravelStrategyInfo() {
        List<TravelStrategyInfo> travelStrategyInfoList = travelStrategyMapper.getTravelStrategyInfo();
        return travelStrategyInfoList;
    }

    @Override
    public TravelStrategyInfo getTravelStrategyInfoById(Integer StrategyID) {
        TravelStrategyInfo info = travelStrategyMapper.getTravelStrategyInfoById(StrategyID);
        return info;
    }

    @Override
    public int deleteTravelStrategyInfoById(Integer StrategyID) {
        int i = travelStrategyMapper.deleteTravelStrategyInfoById(StrategyID);
        return i;
    }

    @Override
    public int insertTravelStrategyInfo(TravelStrategyInfo travelStrategyInfo) {
        int i = travelStrategyMapper.insertTravelStrategyInfo(travelStrategyInfo);
        return i;
    }

    @Override public int updateTravelStrategyInfo(TravelStrategyInfo travelStrategyInfo) {
        int i = travelStrategyMapper.updateTravelStrategyInfo(travelStrategyInfo);
        return i;
    }


}
